﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MisDLL;
using IBLL;
using System.Data;

namespace MisBLL
{
    //操作配置表业务操作类
    public class PosDAO : MarshalByRefObject, IPos
    {
        protected DbHelper dbHelper = new DbHelper();


        //根据机器名检测是否可以登录
        public DataTable CheckMachine(string CName)
        {
            if (string.IsNullOrEmpty(CName))
                return null;
            string sql = string.Format("select POS_ID,F1 from POS_TAB where CNAME='{0}'", CName);
            return dbHelper.ExecuteDataTable(sql);
        }
    }
}
